package util;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.HashSet;
import java.util.Set;


public class WatchListSync {
	public static void main(String[] args){
		Set<String> hash = new HashSet<String>();
		File mainList = new File("c:\\Users\\Jamison\\Documents\\PopulationInfo\\jamo2008List.txt");
		File botList = new File("c:\\Users\\Jamison\\Documents\\PopulationInfo\\botList.txt");
		try{
			BufferedReader reader = new BufferedReader(new FileReader(mainList));
			String line = null;
			while ((line = reader.readLine()) != null){
				hash.add(line);
			}
			reader.close();
			reader = new BufferedReader(new FileReader(botList));
			line = null;
			while ((line = reader.readLine()) != null){
				if (!hash.contains(line)){
					System.out.println(line);
				}
			}
			reader.close();
		} 
		catch (FileNotFoundException e){
			e.printStackTrace();
		} 
		catch (IOException e){
			e.printStackTrace();
		}
	}
}
